package com.anket.address.bo.impl;

import java.util.List;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.anket.address.bo.AddressBo;
import com.anket.address.dao.AddressDao;
import com.anket.city.model.City;
import com.anket.country.model.Country;
import com.anket.district.model.District;

public class AddressBoImpl  implements AddressBo{

	AddressDao addressDao;
	
	public AddressDao getAddressDao() {
		return addressDao;
	}

	public void setAddressDao(AddressDao addressDao) {
		this.addressDao = addressDao;
	}

	
	public List<Country> getAllCountries() {
		return addressDao.getAllCountries();
	}


	public List<City> getAllCities(Integer countryId) {
		// TODO Auto-generated method stub
		return addressDao.getAllCities(countryId);
	}


	public List<District> getAllDistricts(Integer cityId) {
		// TODO Auto-generated method stub
		return addressDao.getAllDistricts(cityId);
	}

}
